/*
 * @Author: your name
 * @Date: 2021-08-16 19:30:10
 * @LastEditTime: 2021-08-23 17:17:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_study\src\store\index.js
 */
import { createStore } from 'vuex'
import mutations from './mutations'
import actions from './actions'
import getters from './getters'

const state={
  user:{
    isLogin:window.localStorage.getItem('token')?true:false
  },
  cartCount:0
}

export default createStore({
  state,
  mutations,
  actions,
  getters,
})
